﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExtendPropertyLib;
using System.ComponentModel;
using DiagramDesigner;

namespace WPFCanvas.CustomControls
{
    public class BaseNodeInfo : ExtendObject
    {
        
        public static ExtendProperty ControlTypeProperty = RegisterProperty<BaseNodeInfo>(t => t.ControlType);
        [Browsable(false)]
        public string ControlType
        {
            set { SetValue(ControlTypeProperty, value); }
            get { return (string)GetValue(ControlTypeProperty); }
        }

        
        public static ExtendProperty ControlIDProperty = RegisterProperty<BaseNodeInfo>(t => t.ControlID);
        [Browsable(false)]
        public Guid ControlID
        {
            set { SetValue(ControlIDProperty, value); }
            get { return (Guid)GetValue(ControlIDProperty); }
        }

        
        public static ExtendProperty ParentIDProperty = RegisterProperty<BaseNodeInfo>(t => t.ParentID);
        [Browsable(false)]
        public Guid ParentID
        {
            set { SetValue(ParentIDProperty, value); }
            get { return (Guid)GetValue(ParentIDProperty); }
        }

        [Browsable(false)]
        public object DesginerCanvas { set; get; }

        public object Tag { set; get; }

    }
}
